package com.ks.core.framework.cpsupload.demos.resp;

import java.util.Map;

// 微信响应适配器工厂
public class WechatResponseAdapterFactory implements ResponseAdapterFactory {
    @Override
    public ResponseComponent createPaymentResponse(Map<String, Object> rawData) {
        return new WechatPayResponse(rawData);
    }
    
    @Override
    public ResponseComponent createRefundResponse(Map<String, Object> rawData) {
        return new WechatRefundResponse(rawData);
    }
    
    @Override
    public ResponseComponent createQueryResponse(Map<String, Object> rawData) {
        // 类似实现
        return null;
    }
    
    @Override
    public ResponseComponent createCallbackResponse(Map<String, Object> rawData) {
        return new WechatCallbackResponse(rawData);
    }
}